package com.hfkh.keyun.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
@TableName("tb_carousel")
public class Carousel implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id" ,type = IdType.AUTO) //自增
    private Integer id;//id
    @TableField("img_url")
    private String imgUrl;//图片URL
    @TableField("img_title")
    private String imgTitle;//文本标题
    @TableField("img_link")
    private String imgLink;//链接地址
    @TableField(exist = false)
    private LocalDateTime createDate;//创建时间
    @TableField(exist = false)
    @TableLogic
    private Integer deleteFlags;
}
